package com.jk.service;

import com.alipay.api.AlipayApiException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;

public interface AlipayService {
    //    支付接口
    String pay(String order_number, String total_amount, HttpServletResponse response, HttpServletRequest request) throws IOException, AlipayApiException;

    /**
     * 退款查询
     * @param  （唯一）
     * @param  ，同一笔交易多次退款需要保证唯一，如需部分退款，则此参数必传
     */
//    String refundQuery(String outTradeNo,String outRequestNo) throws AlipayApiException;
    public String refund1(HttpServletResponse response, HttpSession session,String out_trade_no,String refund_amount) throws IOException, AlipayApiException;

}

